﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="ShippingDetailInfo.aspx.cs" Inherits="BestBuy.UserViews.ShippingDetailInfo" %>


<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
    function ClearData() {
        $("#" + '<%= Address.ClientID %>').val("");
        $("#" + '<%= Phone.ClientID %>').val("");
    }
    </script>
</asp:Content>


<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div class="wrapper-content">
    <div class="form-horizontal">
       <fieldset>
            <legend> Personal Information of the buyer</legend>
             <uc:MessagePanel ID="BuyerInfoMessage" runat="server" />
             <asp:ValidationSummary ID="BuyerInfoValidationSummary" runat="server" CssClass="alert alert-danger" 
             ValidationGroup="BuyerInfoValidationGroup" />
                <div class= "control-group">
                    Add<div class="controls">
                    <asp:TextBox ID="Address" runat="server" />
                    <asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"
                        CssClass="failureNotification" ErrorMessage="Địa chỉ không được để trống."
                        ValidationGroup="UpdateShippingDetailInfoValidationGroup">*</asp:RequiredFieldValidator>   
                </div>
                </div>
                   <div class= "control-group">
                       Phone<div class="controls">
                        <asp:TextBox ID ="Phone" runat ="server"/>
                        <asp:RequiredFieldValidator ID ="PhoneRequired" runat="server" ControlToValidate ="Phone"
                            CssClass="failureNotification" ErrorMessage="Nhập điện thoại." ToolTip ="Nhập điện thoại." ValidationGroup="UpdateShippingDetailInfoValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                       <div class= "control-group">
                           National<div class="controls">
                        <asp:TextBox ID ="Country" runat ="server"/>
                        <asp:RequiredFieldValidator ID ="CountryRequired" runat="server" ControlToValidate ="Country"
                            CssClass="failureNotification" ErrorMessage="Nhập tên nước." ToolTip ="Nhập tên nước." ValidationGroup="UpdateShippingDetailInfoValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
         
               </div>
                        <div class= "control-group">
                            City<div class="controls">
                        <asp:TextBox ID ="City" runat ="server"/>
                        <asp:RequiredFieldValidator ID ="CityRequired" runat="server" ControlToValidate ="City"
                            CssClass="failureNotification" ErrorMessage="Nhập thành phố." ToolTip ="Nhập thành phố." ValidationGroup="UpdateShippingDetailInfoValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
         
               </div>

                <div class="control-group">
                    <div class="controls">
                        <asp:Button ID="UpdateShippingDetailInfoButton" runat="server" 
                            CssClass="btn btn-primary" Text="Save"
                            ValidationGroup="UpdateShippingDetailInfoValidationGroup"  
                            OnClientClick="hideMessagePanel()" 
                            onclick="UpdateShippingDetailInfoButton_Click1" />
                    </div>
                </div>
        </fieldset>
        <fieldset>
        <legend>Set up email</legend>
         <div class="control-group">
                    <asp:Label ID="EmailBuyLabel" runat="server" CssClass="control-label">Do you receive an email to fix a price from the seller?</asp:Label>
                    <br />
                    <div class="controls">
                        <label class="radio">
                            <asp:RadioButton ID="YesEmailBuy" runat="server" GroupName="EmailBuy" Checked="true" />
                            Yes
                        </label>
                        <label class="radio">
                            <asp:RadioButton ID="NoEmailBuy" runat="server" GroupName="EmailBuy" />
                            No
                        </label>
                    </div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                </div>
                <div class="control-group">
                    <asp:Label ID="EmailSetQuestionsLabel" runat="server" CssClass="control-label">Do you receive an email to question from the seller?</asp:Label>
                    <br />
                    <div class="controls">
                        <label class="radio">
                            <asp:RadioButton ID="YesEmailSetQuestions" runat="server" GroupName="EmailSetQuestions" Checked="true" />
                            Yes
                        </label>
                        <label class="radio">
                            <asp:RadioButton ID="NoEmailSetQuestions" runat="server" GroupName="EmailSetQuestions" />
                            No
                        </label>
                    </div>
                </div>
        <div class="control-group">
                    <div class="controls">
                        <asp:Button ID="UpdateUserReferenceInfoButton" runat="server" 
                            CssClass="btn btn-primary" Text="Save"
                            ValidationGroup="UpdateUserReferencelInfoValidationGroup"  
                            OnClientClick="hideMessagePanel()" 
                            onclick="UpdateUserReferenceInfoButton_Click1" />
                    </div>
                </div>
        </fieldset>
    </div>
    </div>
</asp:Content>
